<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>AndBase开发框架: com.ab.util.AbViewUtil类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">AndBase开发框架
   &#160;<span id="projectnumber">1.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecom.html">com</a></li><li class="navelem"><a class="el" href="namespacecom_1_1ab.html">ab</a></li><li class="navelem"><a class="el" href="namespacecom_1_1ab_1_1util.html">util</a></li><li class="navelem"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html">AbViewUtil</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="classcom_1_1ab_1_1util_1_1_ab_view_util-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">com.ab.util.AbViewUtil类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a6c89396e38d12b6e8ce74def9605c459"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a6c89396e38d12b6e8ce74def9605c459">setAbsListViewHeight</a> (AbsListView absListView, int lineNumber, int verticalSpace)</td></tr>
<tr class="separator:a6c89396e38d12b6e8ce74def9605c459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac630e35053af599346b5d2d66d8a25c4"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#ac630e35053af599346b5d2d66d8a25c4">getAbsListViewHeight</a> (AbsListView absListView, int lineNumber, int verticalSpace)</td></tr>
<tr class="separator:ac630e35053af599346b5d2d66d8a25c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa53475e4ba429311c3063d4e658fc54"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#aaa53475e4ba429311c3063d4e658fc54">measureView</a> (View view)</td></tr>
<tr class="separator:aaa53475e4ba429311c3063d4e658fc54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e55a6c7344c405344da9d0b794cb13f"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a9e55a6c7344c405344da9d0b794cb13f">getViewWidth</a> (View view)</td></tr>
<tr class="separator:a9e55a6c7344c405344da9d0b794cb13f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad05434d031dc7ba513bfeaeb029e1f0"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#aad05434d031dc7ba513bfeaeb029e1f0">getViewHeight</a> (View view)</td></tr>
<tr class="separator:aad05434d031dc7ba513bfeaeb029e1f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3c4070cf5fde2743d5750b2956e8a39"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#ad3c4070cf5fde2743d5750b2956e8a39">removeSelfFromParent</a> (View v)</td></tr>
<tr class="separator:ad3c4070cf5fde2743d5750b2956e8a39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a754ae1ec5fc66934149f75e8073af666"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a754ae1ec5fc66934149f75e8073af666">dip2px</a> (Context context, float dipValue)</td></tr>
<tr class="separator:a754ae1ec5fc66934149f75e8073af666"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace84b869014d73df06deb480e2f189f0"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#ace84b869014d73df06deb480e2f189f0">px2dip</a> (Context context, float pxValue)</td></tr>
<tr class="separator:ace84b869014d73df06deb480e2f189f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ed094cc0bab089e278fa494ce6f85af"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a9ed094cc0bab089e278fa494ce6f85af">sp2px</a> (Context context, float spValue)</td></tr>
<tr class="separator:a9ed094cc0bab089e278fa494ce6f85af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0698262aa79573b88c3286e0163b6ab0"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a0698262aa79573b88c3286e0163b6ab0">px2sp</a> (Context context, float pxValue)</td></tr>
<tr class="separator:a0698262aa79573b88c3286e0163b6ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a972e9a20e8efc30617939c1785538bcd"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a972e9a20e8efc30617939c1785538bcd">scale</a> (Context context, float value)</td></tr>
<tr class="separator:a972e9a20e8efc30617939c1785538bcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa64effbd9bf900d14608facd1ee8d563"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#aa64effbd9bf900d14608facd1ee8d563">scale</a> (int displayWidth, int displayHeight, float pxValue)</td></tr>
<tr class="separator:aa64effbd9bf900d14608facd1ee8d563"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa9a0cc7ceeb2d828871fbf50fd99b4c"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#afa9a0cc7ceeb2d828871fbf50fd99b4c">applyDimension</a> (int unit, float value, DisplayMetrics metrics)</td></tr>
<tr class="separator:afa9a0cc7ceeb2d828871fbf50fd99b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7427fa574916cb436b3f6f2a690bc8f9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a7427fa574916cb436b3f6f2a690bc8f9">scaleContentView</a> (ViewGroup contentView)</td></tr>
<tr class="separator:a7427fa574916cb436b3f6f2a690bc8f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa652cd1de664dfbcc3e47cfef488003e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#aa652cd1de664dfbcc3e47cfef488003e">scaleView</a> (View view)</td></tr>
<tr class="separator:aa652cd1de664dfbcc3e47cfef488003e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a571ecb8208a0d5f4accbdc4d9faf1644"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a571ecb8208a0d5f4accbdc4d9faf1644">setSPTextSize</a> (TextView textView, float size)</td></tr>
<tr class="separator:a571ecb8208a0d5f4accbdc4d9faf1644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbff8f005bfdb2ba3dc3ca888035a3d7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#abbff8f005bfdb2ba3dc3ca888035a3d7">setTextSize</a> (TextView textView, float sizePixels)</td></tr>
<tr class="separator:abbff8f005bfdb2ba3dc3ca888035a3d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f62e9ce1f95b5d1ddb5496de8e5ddc8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a6f62e9ce1f95b5d1ddb5496de8e5ddc8">setTextSize</a> (Context context, TextPaint textPaint, float sizePixels)</td></tr>
<tr class="separator:a6f62e9ce1f95b5d1ddb5496de8e5ddc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d8b3f5474f90771655758e9f7cac75e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a4d8b3f5474f90771655758e9f7cac75e">setTextSize</a> (Context context, Paint paint, float sizePixels)</td></tr>
<tr class="separator:a4d8b3f5474f90771655758e9f7cac75e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f54c08c6fe15cba6b346ea24a019ec"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#ab3f54c08c6fe15cba6b346ea24a019ec">setViewSize</a> (View view, int widthPixels, int heightPixels)</td></tr>
<tr class="separator:ab3f54c08c6fe15cba6b346ea24a019ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d8cd31774dfa9c8a738f6a60c1f3344"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a9d8cd31774dfa9c8a738f6a60c1f3344">setPadding</a> (View view, int left, int top, int right, int bottom)</td></tr>
<tr class="separator:a9d8cd31774dfa9c8a738f6a60c1f3344"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a236992fb06149e8a9f808fbf1bab6415"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a236992fb06149e8a9f808fbf1bab6415">setMargin</a> (View view, int left, int top, int right, int bottom)</td></tr>
<tr class="separator:a236992fb06149e8a9f808fbf1bab6415"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a71807a99322f34360d52641f65dc988a"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1ab_1_1util_1_1_ab_view_util.html#a71807a99322f34360d52641f65dc988a">INVALID</a> = Integer.MIN_VALUE</td></tr>
<tr class="separator:a71807a99322f34360d52641f65dc988a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>© 2012 amsoft.cn 名称：AbViewUtil.java 描述：View工具类.</p>
<dl class="section author"><dt>作者</dt><dd>还如一梦中 </dd></dl>
<dl class="section version"><dt>版本</dt><dd>v1.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>：2013-01-17 下午11:52:13 </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="afa9a0cc7ceeb2d828871fbf50fd99b4c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float com.ab.util.AbViewUtil.applyDimension </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>unit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DisplayMetrics&#160;</td>
          <td class="paramname"><em>metrics</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>TypedValue官方源码中的算法，任意单位转换为PX单位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">unit</td><td>TypedValue.COMPLEX_UNIT_DIP </td></tr>
    <tr><td class="paramname">value</td><td>对应单位的值 </td></tr>
    <tr><td class="paramname">metrics</td><td>密度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>px值 </dd></dl>

</div>
</div>
<a class="anchor" id="a754ae1ec5fc66934149f75e8073af666"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float com.ab.util.AbViewUtil.dip2px </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dipValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：dip转换为px.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">dipValue</td><td>the dip value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>px值 </dd></dl>

</div>
</div>
<a class="anchor" id="ac630e35053af599346b5d2d66d8a25c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int com.ab.util.AbViewUtil.getAbsListViewHeight </td>
          <td>(</td>
          <td class="paramtype">AbsListView&#160;</td>
          <td class="paramname"><em>absListView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verticalSpace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：获取AbsListView的高度.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">absListView</td><td>the abs list view </td></tr>
    <tr><td class="paramname">lineNumber</td><td>每行几个 ListView一行一个item </td></tr>
    <tr><td class="paramname">verticalSpace</td><td>the vertical space </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the abs list view height </dd></dl>

</div>
</div>
<a class="anchor" id="aad05434d031dc7ba513bfeaeb029e1f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int com.ab.util.AbViewUtil.getViewHeight </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得这个View的高度 测量这个view，最后通过getMeasuredHeight()获取高度. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>要测量的view </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>测量过的view的高度 </dd></dl>

</div>
</div>
<a class="anchor" id="a9e55a6c7344c405344da9d0b794cb13f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int com.ab.util.AbViewUtil.getViewWidth </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得这个View的宽度 测量这个view，最后通过getMeasuredWidth()获取宽度. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>要测量的view </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>测量过的view的宽度 </dd></dl>

</div>
</div>
<a class="anchor" id="aaa53475e4ba429311c3063d4e658fc54"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.measureView </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>测量这个view 最后通过getMeasuredWidth()获取宽度和高度. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>要测量的view </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>测量过的view </dd></dl>

</div>
</div>
<a class="anchor" id="ace84b869014d73df06deb480e2f189f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float com.ab.util.AbViewUtil.px2dip </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>pxValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：px转换为dip.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">pxValue</td><td>the px value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>dip值 </dd></dl>

</div>
</div>
<a class="anchor" id="a0698262aa79573b88c3286e0163b6ab0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float com.ab.util.AbViewUtil.px2sp </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>pxValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：px转换为sp.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">spValue</td><td>the sp value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>sp值 </dd></dl>

</div>
</div>
<a class="anchor" id="ad3c4070cf5fde2743d5750b2956e8a39"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.removeSelfFromParent </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从父亲布局中移除自己 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a972e9a20e8efc30617939c1785538bcd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int com.ab.util.AbViewUtil.scale </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：根据屏幕大小缩放.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">pxValue</td><td>the px value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the int </dd></dl>

</div>
</div>
<a class="anchor" id="aa64effbd9bf900d14608facd1ee8d563"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int com.ab.util.AbViewUtil.scale </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>displayWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>displayHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>pxValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：根据屏幕大小缩放.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">displayWidth</td><td>the display width </td></tr>
    <tr><td class="paramname">displayHeight</td><td>the display height </td></tr>
    <tr><td class="paramname">pxValue</td><td>the px value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the int </dd></dl>

</div>
</div>
<a class="anchor" id="a7427fa574916cb436b3f6f2a690bc8f9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.scaleContentView </td>
          <td>(</td>
          <td class="paramtype">ViewGroup&#160;</td>
          <td class="paramname"><em>contentView</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：View树递归调用做适配. AbAppConfig.uiWidth = 1080; AbAppConfig.uiHeight = 700; scaleContentView((RelativeLayout)findViewById(R.id.rootLayout)); 要求布局中的单位都用px并且和美工的设计图尺寸一致，包括所有宽高，Padding,Margin,文字大小 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contentView</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa652cd1de664dfbcc3e47cfef488003e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.scaleView </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>按比例缩放View，以布局中的尺寸为基准 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6c89396e38d12b6e8ce74def9605c459"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setAbsListViewHeight </td>
          <td>(</td>
          <td class="paramtype">AbsListView&#160;</td>
          <td class="paramname"><em>absListView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verticalSpace</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：重置AbsListView的高度. item 的最外层布局要用 RelativeLayout,如果计算的不准，就为RelativeLayout指定一个高度</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">absListView</td><td>the abs list view </td></tr>
    <tr><td class="paramname">lineNumber</td><td>每行几个 ListView一行一个item </td></tr>
    <tr><td class="paramname">verticalSpace</td><td>the vertical space </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a236992fb06149e8a9f808fbf1bab6415"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setMargin </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 PX margin.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>the view </td></tr>
    <tr><td class="paramname">left</td><td>the left margin in pixels </td></tr>
    <tr><td class="paramname">top</td><td>the top margin in pixels </td></tr>
    <tr><td class="paramname">right</td><td>the right margin in pixels </td></tr>
    <tr><td class="paramname">bottom</td><td>the bottom margin in pixels </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9d8cd31774dfa9c8a738f6a60c1f3344"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setPadding </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置PX padding.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>the view </td></tr>
    <tr><td class="paramname">left</td><td>the left padding in pixels </td></tr>
    <tr><td class="paramname">top</td><td>the top padding in pixels </td></tr>
    <tr><td class="paramname">right</td><td>the right padding in pixels </td></tr>
    <tr><td class="paramname">bottom</td><td>the bottom padding in pixels </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a571ecb8208a0d5f4accbdc4d9faf1644"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setSPTextSize </td>
          <td>(</td>
          <td class="paramtype">TextView&#160;</td>
          <td class="paramname"><em>textView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>缩放文字大小 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">textView</td><td>button </td></tr>
    <tr><td class="paramname">size</td><td>sp值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="abbff8f005bfdb2ba3dc3ca888035a3d7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setTextSize </td>
          <td>(</td>
          <td class="paramtype">TextView&#160;</td>
          <td class="paramname"><em>textView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sizePixels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>缩放文字大小,这样设置的好处是文字的大小不和密度有关， 能够使文字大小在不同的屏幕上显示比例正确 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">textView</td><td>button </td></tr>
    <tr><td class="paramname">sizePixels</td><td>px值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a6f62e9ce1f95b5d1ddb5496de8e5ddc8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setTextSize </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TextPaint&#160;</td>
          <td class="paramname"><em>textPaint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sizePixels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>缩放文字大小 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
    <tr><td class="paramname">textPaint</td><td></td></tr>
    <tr><td class="paramname">sizePixels</td><td>px值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a4d8b3f5474f90771655758e9f7cac75e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setTextSize </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Paint&#160;</td>
          <td class="paramname"><em>paint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>sizePixels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>缩放文字大小 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td></td></tr>
    <tr><td class="paramname">paint</td><td></td></tr>
    <tr><td class="paramname">sizePixels</td><td>px值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ab3f54c08c6fe15cba6b346ea24a019ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.ab.util.AbViewUtil.setViewSize </td>
          <td>(</td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>widthPixels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>heightPixels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置View的PX尺寸 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">view</td><td>如果是代码new出来的View，需要设置一个适合的LayoutParams </td></tr>
    <tr><td class="paramname">widthPixels</td><td></td></tr>
    <tr><td class="paramname">heightPixels</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9ed094cc0bab089e278fa494ce6f85af"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float com.ab.util.AbViewUtil.sp2px </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>spValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>描述：sp转换为px.</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>the context </td></tr>
    <tr><td class="paramname">spValue</td><td>the sp value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>sp值 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="a71807a99322f34360d52641f65dc988a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.ab.util.AbViewUtil.INVALID = Integer.MIN_VALUE</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>无效值 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/com/ab/util/<a class="el" href="_ab_view_util_8java.html">AbViewUtil.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 十一月 6日 星期四 11:22:02 , 为 AndBase开发框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
